package com.ruoyi.customer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 【订单信息】
 *
 * @author dxw
 * @date 2022-04-20
 */
public class OrderContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderNumber;

    /** 货运单编号 */
    @Excel(name = "货运单编号")
    private Long waybillNumber;

    /** 发货人姓名 */
    @Excel(name = "发货人姓名")
    private String senderName;

    /** 发货人电话 */
    @Excel(name = "发货人电话")
    private Long senderPhone;

    /** 发货人地址 */
    @Excel(name = "发货人地址")
    private String senderAddr;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String receiverName;

    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private Long receiverPhone;

    /** 收货人地址 */
    @Excel(name = "收货人地址")
    private String receiverAddr;

    /** 是否预收货款 */
    @Excel(name = "是否预收货款")
    private Long isNeedCollectPayment;

    /** 货款 */
    @Excel(name = "货款")
    private Long payment;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 里程 */
    @Excel(name = "里程")
    private Long distance;

    /** 货物重量 */
    @Excel(name = "货物重量")
    private Long goodsWeight;

    /** 货物体积 */
    @Excel(name = "货物体积")
    private Long goodsVolume;

    /** 是否有易碎品 */
    @Excel(name = "是否有易碎品")
    private String containsFragileGoods;

    /** 货物价值 */
    @Excel(name = "货物价值")
    private Long goodsValue;

    /** 结算状态 */
    @Excel(name = "结算状态")
    private Long agencyStatus;

    /** 货运单状态 */
    @Excel(name = "货运单状态")
    private Long waybillStatus;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String remarks;

    /** 逻辑删除;逻辑删除,0表示未删除,1表示已删除 */
    @Excel(name = "逻辑删除")
    private Long deleted;

    public void setOrderNumber(Long orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public Long getOrderNumber()
    {
        return orderNumber;
    }
    public void setWaybillNumber(Long waybillNumber)
    {
        this.waybillNumber = waybillNumber;
    }

    public Long getWaybillNumber()
    {
        return waybillNumber;
    }
    public void setSenderName(String senderName)
    {
        this.senderName = senderName;
    }

    public String getSenderName()
    {
        return senderName;
    }
    public void setSenderPhone(Long senderPhone)
    {
        this.senderPhone = senderPhone;
    }

    public Long getSenderPhone()
    {
        return senderPhone;
    }
    public void setSenderAddr(String senderAddr)
    {
        this.senderAddr = senderAddr;
    }

    public String getSenderAddr()
    {
        return senderAddr;
    }
    public void setReceiverName(String receiverName)
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName()
    {
        return receiverName;
    }
    public void setReceiverPhone(Long receiverPhone)
    {
        this.receiverPhone = receiverPhone;
    }

    public Long getReceiverPhone()
    {
        return receiverPhone;
    }
    public void setReceiverAddr(String receiverAddr)
    {
        this.receiverAddr = receiverAddr;
    }

    public String getReceiverAddr()
    {
        return receiverAddr;
    }
    public void setIsNeedCollectPayment(Long isNeedCollectPayment)
    {
        this.isNeedCollectPayment = isNeedCollectPayment;
    }

    public Long getIsNeedCollectPayment()
    {
        return isNeedCollectPayment;
    }
    public void setPayment(Long payment)
    {
        this.payment = payment;
    }

    public Long getPayment()
    {
        return payment;
    }
    public void setDeliveryTime(Date deliveryTime)
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime()
    {
        return deliveryTime;
    }
    public void setDistance(Long distance)
    {
        this.distance = distance;
    }

    public Long getDistance()
    {
        return distance;
    }
    public void setGoodsWeight(Long goodsWeight)
    {
        this.goodsWeight = goodsWeight;
    }

    public Long getGoodsWeight()
    {
        return goodsWeight;
    }
    public void setGoodsVolume(Long goodsVolume)
    {
        this.goodsVolume = goodsVolume;
    }

    public Long getGoodsVolume()
    {
        return goodsVolume;
    }
    public void setContainsFragileGoods(String containsFragileGoods)
    {
        this.containsFragileGoods = containsFragileGoods;
    }

    public String getContainsFragileGoods()
    {
        return containsFragileGoods;
    }
    public void setGoodsValue(Long goodsValue)
    {
        this.goodsValue = goodsValue;
    }

    public Long getGoodsValue()
    {
        return goodsValue;
    }
    public void setAgencyStatus(Long agencyStatus)
    {
        this.agencyStatus = agencyStatus;
    }

    public Long getAgencyStatus()
    {
        return agencyStatus;
    }
    public void setWaybillStatus(Long waybillStatus)
    {
        this.waybillStatus = waybillStatus;
    }

    public Long getWaybillStatus()
    {
        return waybillStatus;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }
    public void setDeleted(Long deleted)
    {
        this.deleted = deleted;
    }

    public Long getDeleted()
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("orderNumber", getOrderNumber())
                .append("waybillNumber", getWaybillNumber())
                .append("senderName", getSenderName())
                .append("senderPhone", getSenderPhone())
                .append("senderAddr", getSenderAddr())
                .append("receiverName", getReceiverName())
                .append("receiverPhone", getReceiverPhone())
                .append("receiverAddr", getReceiverAddr())
                .append("isNeedCollectPayment", getIsNeedCollectPayment())
                .append("payment", getPayment())
                .append("deliveryTime", getDeliveryTime())
                .append("distance", getDistance())
                .append("goodsWeight", getGoodsWeight())
                .append("goodsVolume", getGoodsVolume())
                .append("containsFragileGoods", getContainsFragileGoods())
                .append("goodsValue", getGoodsValue())
                .append("agencyStatus", getAgencyStatus())
                .append("waybillStatus", getWaybillStatus())
                .append("remarks", getRemarks())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("deleted", getDeleted())
                .toString();
    }
}
